export default {
  namespaced: true,
  state: {
    drawingList: [],
    drawingData: {},
    activeId: null,
    formData: {},
    activeData: {},
    activeItem: {},
    activeTableItem: {},
    hasTable: false,
    idGlobal: 100,
    subTable: [],
  },
  actions: {},
  mutations: {
    setDrawingList(state, drawingList) {
      state.drawingList.push(drawingList);
    },
    setActiveId(state, activeId) {
      state.activeId = activeId;
    },
    setFormData(state, formData) {
      state.formData = formData;
    },
    setActiveData(state, activeData) {
      state.activeData = activeData;
    },
    setActiveItem(state, activeItem) {
      state.activeItem = activeItem;
    },
    setActiveTableItem(state, activeTableItem) {
      state.activeTableItem = activeTableItem;
    },
    SET_TABLE(state, val) {
      state.hasTable = val;
    },
    setIdGlobal(state, idGlobal) {
      state.idGlobal = idGlobal;
    },
    setSubTable(state, subTable) {
      state.subTable = subTable;
    },
  },
};
